package com.etl.webservicenet.api;

/**
 * <pre>
 *     author :
 *     time   : 2021/07/30
 *     desc   :
 * </pre>
 */
public class ServerApi {
    public final static String NAME_SPACE="http://tempuri.org/";
    public final static int ENDPOINT_TYPE=1;
    public final static int TOKEN_TYPE=0;
    public static final boolean IS_DISTRIBUTION = true; // 是否为正式版
    public static String getEndPoint(){
        switch (ENDPOINT_TYPE) {
            case 0:
                // 演示服务器地址
                return "http://test.api.ysaqjy.etledu.com/YsqyService.asmx";
            case 1:
                // 正式服务器地址
                return "https://apiysaqjy.etledu.com/YsqyService.asmx";
            case 2:
                //测试地址
                return "https://test-servicejtysaqjy.etledu.com/YsqyService.asmx";
            default:
                return "";
        }
    }
    public static String getTokenKey() {
        switch (TOKEN_TYPE) {
            case 0:
                return "ZhanShiWangAndroid-1a0c2e65-f0db-4395-89fd-14a54c0314e1"; // 交通
            case 1:
                return "ZhanShiWangAndroid-51b8736d-12ec-43dd-8d60-ea969c4c3d5e"; // 安监
            default:
                return "";
        }
    }
    public static String getAliPayCallBack() {
        if (IS_DISTRIBUTION) {
            return "http://trafficpayservice.daoluyunshu.com/api/payment";
        } else {
            return "http://test-servicepay.daoluyunshu.com/api/payment";
        }
    }
    //版本更新接口
    public static String getUpdateWebService() {

        //  return "https://test-servicejtysaqjy.etledu.com/YsqyService.asmx";  临时测试服务器
        if (IS_DISTRIBUTION) {
            // 正式服务器地址
            return "http://upgrade.daoluyunshu.com:8800/Service1.asmx";
            // return "http://test.trafficupgrade.daoluyunshu.com/Service1.asmx";
        } else {
            // 测试服务器地址

            return "http://test.trafficupgrade.daoluyunshu.com/Service1.asmx";
        }
    }
}
